<?php 
/**
 * privilege 和 employee 中间表
 * @author silenus
 *
 */
class mid_privilege_employee extends spModel {
	public $pk = 'privilege_id';
	public $table = 'mid_privilege_employee';
	
	
	/**
	 * 
	 * @param int $privilege_id
	 * @return array employee_id
	 */
	function getAllBypid($privilege_id){
	$result = $this->findAll(array(
			'privilege_id' => $privilege_id
			));
	
	return $result;
	}

}
?>